package com.c2soft.nepalcmx.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.c2soft.nepalcmx.command.AccountDetailCommand;
import com.c2soft.nepalcmx.command.NetPositionCommand;
import com.c2soft.nepalcmx.command.OrderCommand;
import com.c2soft.nepalcmx.command.TradeBookCommand;
import com.c2soft.nepalcmx.dao.OrderMgmtDAO;

@Service
public class OrderMgmtService {

	@Autowired
	private OrderMgmtDAO orderMgmtDAO;

	public void buyService(OrderCommand buy) {
		orderMgmtDAO.saveBuyService(buy);
	}

	public void sellService(OrderCommand sell) {
		orderMgmtDAO.saveSellService(sell);
	}

	public void futureService(OrderCommand sell) {
	}
	
	public List<NetPositionCommand> getBuyOrder(String userId) {
		
		return orderMgmtDAO.findBuyOrder(userId);
	}
	

	

}
